package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private Long id;
	private Member memberByReceiver;
	private Member memberBySender;
	private Message message;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String content;
	private String ip;
	private Boolean isDraft;
	private Boolean receiverDelete;
	private Boolean receiverRead;
	private Boolean senderDelete;
	private Boolean senderRead;
	private String title;
	private Set messages = new HashSet(0);

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(Timestamp createDate, Timestamp modifyDate, String content,
			String ip, Boolean isDraft, Boolean receiverDelete,
			Boolean receiverRead, Boolean senderDelete, Boolean senderRead,
			String title) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.content = content;
		this.ip = ip;
		this.isDraft = isDraft;
		this.receiverDelete = receiverDelete;
		this.receiverRead = receiverRead;
		this.senderDelete = senderDelete;
		this.senderRead = senderRead;
		this.title = title;
	}

	/** full constructor */
	public Message(Member memberByReceiver, Member memberBySender,
			Message message, Timestamp createDate, Timestamp modifyDate,
			String content, String ip, Boolean isDraft, Boolean receiverDelete,
			Boolean receiverRead, Boolean senderDelete, Boolean senderRead,
			String title, Set messages) {
		this.memberByReceiver = memberByReceiver;
		this.memberBySender = memberBySender;
		this.message = message;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.content = content;
		this.ip = ip;
		this.isDraft = isDraft;
		this.receiverDelete = receiverDelete;
		this.receiverRead = receiverRead;
		this.senderDelete = senderDelete;
		this.senderRead = senderRead;
		this.title = title;
		this.messages = messages;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Member getMemberByReceiver() {
		return this.memberByReceiver;
	}

	public void setMemberByReceiver(Member memberByReceiver) {
		this.memberByReceiver = memberByReceiver;
	}

	public Member getMemberBySender() {
		return this.memberBySender;
	}

	public void setMemberBySender(Member memberBySender) {
		this.memberBySender = memberBySender;
	}

	public Message getMessage() {
		return this.message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Boolean getIsDraft() {
		return this.isDraft;
	}

	public void setIsDraft(Boolean isDraft) {
		this.isDraft = isDraft;
	}

	public Boolean getReceiverDelete() {
		return this.receiverDelete;
	}

	public void setReceiverDelete(Boolean receiverDelete) {
		this.receiverDelete = receiverDelete;
	}

	public Boolean getReceiverRead() {
		return this.receiverRead;
	}

	public void setReceiverRead(Boolean receiverRead) {
		this.receiverRead = receiverRead;
	}

	public Boolean getSenderDelete() {
		return this.senderDelete;
	}

	public void setSenderDelete(Boolean senderDelete) {
		this.senderDelete = senderDelete;
	}

	public Boolean getSenderRead() {
		return this.senderRead;
	}

	public void setSenderRead(Boolean senderRead) {
		this.senderRead = senderRead;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

}